const state = {
	collectList: []
}
const mutations = {
	// 添加收藏
	ADD_COLLECT(state, data) {
		state.collectList.push(data)
	},
	// 删除收藏
	DEL_COLLECT(state, data) {
		state.collectList = data
	}
}
const actions = {
	AddCollect({
		commit
	}, data) {
		commit('ADD_COLLECT', data)
	},
	DelCollect({
		commit
	}, data) {
		commit('DEL_COLLECT', data)
	},
}
export default {
	namespaced: true,
	state,
	mutations,
	actions
}
